import request from '@/utils/request'

/**
 * 积分列表查询
 * @param {*} data
 */
export function querySpecial(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/breakthroughActivity/query',
    method: 'post',
    data
  })
}

/**
 * 积分排行
 * @param {*} data
 */
export function querySpecialRank(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/leaderboard/pointsLeaderboard',
    method: 'post',
    data
  })
}
/**
 * 排行榜详情
 * @param {*} data
 */
export function queryDetailList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/leaderboard/pointsDetails',
    method: 'post',
    data
  })
}
/**
 * 排行榜详情
 * @param {*} data
 */
export function exportFile(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/leaderboard/pointsLeaderBoardExport',
    method: 'post',
    data,
    responseType: 'blob'
  })
}
